\hypertarget{class_q_qt_named_pipe_client}{}\section{Q\+Qt\+Named\+Pipe\+Client Class Reference}
\label{class_q_qt_named_pipe_client}\index{Q\+Qt\+Named\+Pipe\+Client@{Q\+Qt\+Named\+Pipe\+Client}}


客户端决定和协议的交互关系;只跟协议打交道； 处理粘包，数少包。 通过安装协议，支持客户通信 打开， 发送，接收，splitter，dispatcher 关闭。  




{\ttfamily \#include $<$qqtnamedpipeclient.\+h$>$}

Inheritance diagram for Q\+Qt\+Named\+Pipe\+Client\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_q_qt_named_pipe_client}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_a47811c7a78f95b1e4585e66f0730f563}\label{class_q_qt_named_pipe_client_a47811c7a78f95b1e4585e66f0730f563}} 
void {\bfseries signal\+Connecting} ()
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_afc50148c5f39fda58f60ec2d557f6f9d}\label{class_q_qt_named_pipe_client_afc50148c5f39fda58f60ec2d557f6f9d}} 
void {\bfseries signal\+Connect\+Succ} ()
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_a56b7ca0f8a546887f0ee05c72b8ea61c}\label{class_q_qt_named_pipe_client_a56b7ca0f8a546887f0ee05c72b8ea61c}} 
void {\bfseries signal\+Connect\+Fail} ()
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_af86b2ea777ea7fd78214149393898661}\label{class_q_qt_named_pipe_client_af86b2ea777ea7fd78214149393898661}} 
void {\bfseries signal\+Connect\+Error} ()
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_ab8ad25e3ab63ecac005af526f7f0c974}\label{class_q_qt_named_pipe_client_ab8ad25e3ab63ecac005af526f7f0c974}} 
void {\bfseries signal\+Dis\+Connect\+Succ} ()
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_a5edd02525f965e6c9ec7ebf59281248d}\label{class_q_qt_named_pipe_client_a5edd02525f965e6c9ec7ebf59281248d}} 
void {\bfseries signal\+Dis\+Connect\+Fail} ()
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_ad5cab399ee960e5dcdb0f7f68b5fe373}\label{class_q_qt_named_pipe_client_ad5cab399ee960e5dcdb0f7f68b5fe373}} 
void {\bfseries signal\+Update\+Progress} (qint64 value)
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_abedd9c01437c5ca4e2973260bce0411b}\label{class_q_qt_named_pipe_client_abedd9c01437c5ca4e2973260bce0411b}} 
{\bfseries Q\+Qt\+Named\+Pipe\+Client} (Q\+Object $\ast$parent=0)
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_ac9ca1b3c6efdcb84965191d75c412684}\label{class_q_qt_named_pipe_client_ac9ca1b3c6efdcb84965191d75c412684}} 
void {\bfseries set\+Server\+I\+P\+Address} (Q\+String ip)
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_a1eb2955d1f5d97ba068622351201756c}\label{class_q_qt_named_pipe_client_a1eb2955d1f5d97ba068622351201756c}} 
Q\+String\+List \& {\bfseries server\+I\+P\+Address} ()
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_a5fc853fe803baf091b8adf0e08f28506}\label{class_q_qt_named_pipe_client_a5fc853fe803baf091b8adf0e08f28506}} 
void {\bfseries set\+Server\+I\+P\+Address} (Q\+String\+List ip\+List)
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_ab7fcd7e037795af63d3dea99a67ea9ed}\label{class_q_qt_named_pipe_client_ab7fcd7e037795af63d3dea99a67ea9ed}} 
void {\bfseries install\+Protocol} (\mbox{\hyperlink{class_q_qt_protocol}{Q\+Qt\+Protocol}} $\ast$stack)
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_a12359131685a780f2b5d505d08ae5b80}\label{class_q_qt_named_pipe_client_a12359131685a780f2b5d505d08ae5b80}} 
void {\bfseries uninstall\+Protocol} (\mbox{\hyperlink{class_q_qt_protocol}{Q\+Qt\+Protocol}} $\ast$stack)
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_ae82259a41f86af3725e13dd1eff73851}\label{class_q_qt_named_pipe_client_ae82259a41f86af3725e13dd1eff73851}} 
\mbox{\hyperlink{class_q_qt_protocol}{Q\+Qt\+Protocol}} $\ast$ {\bfseries installed\+Protocol} ()
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_a7c0f95a9df54e3a6ddf96bd1db042003}\label{class_q_qt_named_pipe_client_a7c0f95a9df54e3a6ddf96bd1db042003}} 
void {\bfseries send\+Connect\+To\+Host} ()
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_ac2ab3fd08e6cc7f75070ced80f800c3c}\label{class_q_qt_named_pipe_client_ac2ab3fd08e6cc7f75070ced80f800c3c}} 
int {\bfseries send\+Dis\+Connect\+From\+Host} ()
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_abff74f5178be2fdf799d6707ee5510b2}\label{class_q_qt_named_pipe_client_abff74f5178be2fdf799d6707ee5510b2}} 
void {\bfseries set\+Peer\+Name} (Q\+String name)
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_a27aadce8c91dcd7264a7e4a64dcd223b}\label{class_q_qt_named_pipe_client_a27aadce8c91dcd7264a7e4a64dcd223b}} 
Q\+String {\bfseries peer\+Name} ()
\end{DoxyCompactItemize}
\subsection*{Protected Slots}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_ae7567faac96841b392cfae6af811f1d2}\label{class_q_qt_named_pipe_client_ae7567faac96841b392cfae6af811f1d2}} 
void {\bfseries ready\+Read\+Data} ()
\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_a41088fce8513dbfeea0c3db582afb233}\label{class_q_qt_named_pipe_client_a41088fce8513dbfeea0c3db582afb233}} 
void {\bfseries slot\+Write\+Data} (const Q\+Byte\+Array \&)
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \mbox{\hyperlink{class_q_qt_named_pipe_client_a7387042a99d784dd90748ae68bb1be69}{translator}} (const Q\+Byte\+Array \&bytes)
\begin{DoxyCompactList}\small\item\em translator 用于拆分和分发数据报 \end{DoxyCompactList}\item 
\mbox{\Hypertarget{class_q_qt_named_pipe_client_a300d1f3d277d809ff500f2e1292a329e}\label{class_q_qt_named_pipe_client_a300d1f3d277d809ff500f2e1292a329e}} 
void {\bfseries connect\+To\+Singel\+Host} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
客户端决定和协议的交互关系;只跟协议打交道； 处理粘包，数少包。 通过安装协议，支持客户通信 打开， 发送，接收，splitter，dispatcher 关闭。 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_q_qt_named_pipe_client_a7387042a99d784dd90748ae68bb1be69}\label{class_q_qt_named_pipe_client_a7387042a99d784dd90748ae68bb1be69}} 
\index{Q\+Qt\+Named\+Pipe\+Client@{Q\+Qt\+Named\+Pipe\+Client}!translator@{translator}}
\index{translator@{translator}!Q\+Qt\+Named\+Pipe\+Client@{Q\+Qt\+Named\+Pipe\+Client}}
\subsubsection{\texorpdfstring{translator()}{translator()}}
{\footnotesize\ttfamily void Q\+Qt\+Named\+Pipe\+Client\+::translator (\begin{DoxyParamCaption}\item[{const Q\+Byte\+Array \&}]{bytes }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}



translator 用于拆分和分发数据报 


\begin{DoxyParams}{Parameters}
{\em bytes} & \\
\hline
\end{DoxyParams}
这个地方的实现，还是有一些复杂， 但是只有流式传输才需要， 而且，每种通讯接口的流式传输都是一样的， 过去，写在protocol里是为了增添传输工具客户端类型方便 现在，这块比较稳定，所以挪动回来。

只能安装一个协议。 如果安装多个，这个地方的static，需要给协议们分配独立的buffer。 一个客户端，和服务器通信，一条流，可以由多个协议进行解析吗？

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/highgrade/network/qqtnamedpipeclient.\+h\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/highgrade/network/qqtnamedpipeclient.\+cpp\end{DoxyCompactItemize}
